<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div th:each="item: ${cookie}">
      <p th:text="${item.getName()}"></p>
      <p th:text="${item.getValue()}"></p><br>
  </div>

</body>
</html>